﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MuaChung.Models.AnswerModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SendAnswer
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="/Scripts/HtmlBox_4.0/htmlbox.min.js"></script>        
    <h2>Hỗ trợ</h2>
    
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        <div id="Message">
            <%: ViewData["Message"] %>
        </div>
        <fieldset>
            <legend>Câu hỏi cần trợ giúp</legend>
            <%:Html.HiddenFor(m=>m.id) %>
            <%:Html.HiddenFor(m=>m.email) %>
            <%:Html.HiddenFor(m=>m.noiDungCauHoi) %>
            <div class="editor-field">
                Email người đặt câu hỏi:
                <span style="color:Blue"><%:Model.email %></span>
            </div>
            <div class="editor-field">
                Nội dung câu hỏi:
                <fieldset>
                <%: new HtmlString(Model.noiDungCauHoi) %>
                </fieldset>
            </div>
            <div class="editor-label">
                Nội dung câu trả lời:
            </div>
            <form runat=server>
            <CKEditor:CKEditorControl ID="Answer" UIColor="Green" name="Answer" runat="server"></CKEditor:CKEditorControl>
            </form>            
            <p>
                <input type="submit" value="Gửi" />
            </p>
        </fieldset>
    <% } %>
    <p>
        <a href="/Manager/ListAllQuestion" title="Trở lại danh sách các câu hỏi">Trở lại danh sách</a>
    </p>

</asp:Content>
